<template>
  <!-- 弹幕列表 -->
  <div class="commend-list" style="background-color: #ccc !important">
    <el-row class="tac">
      <el-col :span="24">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
        >
          <el-sub-menu index="1">
            <template #title>
              <el-icon><Location /></el-icon>
              <span>弹幕列表</span>
              <i class="iconfont icon-24gf-ellipsisVertical"></i>
            </template>
            <el-menu-item-group title="Group One">
              <el-menu-item index="1-1">item one</el-menu-item>
              <el-menu-item index="1-2">item one</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group title="Group Two">
              <el-menu-item index="1-3">item three</el-menu-item>
            </el-menu-item-group>
            <el-sub-menu index="1-4">
              <template #title>item four</template>
              <el-menu-item index="1-4-1">item one</el-menu-item>
            </el-sub-menu>
          </el-sub-menu>
        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>

<script lang="ts">
  import { defineComponent } from 'vue'
  export default defineComponent({
    name: 'CommendList',
  })
</script>

<script lang="ts" setup>
  import { Location } from '@element-plus/icons'
  const handleOpen = (key: any, keyPath: any) => {
    console.log(key, keyPath)
  }
  const handleClose = (key: any, keyPath: any) => {
    console.log(key, keyPath)
  }
</script>

<style scoped>
  @import url('//at.alicdn.com/t/font_2978613_dw7o84n8zo.css');
</style>

<style lang="less" scoped></style>
